package com.movitech.mobile.cz.base.supplier.service;

import com.baomidou.mybatisplus.service.IService;
import com.movitech.mobile.cz.base.supplier.entity.SSuppliersInspection;
import com.movitech.mobile.cz.base.supplier.entity.ext.ExtSSuppliersInspection;

import java.util.List;

/**
 * <p>
 * 供方考察报告 服务类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
public interface SSuppliersInspectionService extends IService<SSuppliersInspection> {

	/**
	 * 考察报告新增
	 * @param sSuppliersInspection
	 * @return
	 */
	boolean addSSuppliersInspection(SSuppliersInspection sSuppliersInspection);

    SSuppliersInspection getBySupplierId(String supplierId);

	List<ExtSSuppliersInspection> getListBySupplierId(String supplierId);

	/**
	 * 根据供方id和地区公司id获取未处理最新考察报告记录
	 * @param suppliersId
	 * @param regionalCompanyId
	 * @return
	 */
	SSuppliersInspection getLatestRecordBySuppliersIdAndRegionalCompanyId(String suppliersId, String regionalCompanyId);

	SSuppliersInspection getUnDoneSuppliersInspectionBySupplierIdAndRegionCompanyId(String supplierId,
			String serviceRegionalCompanyId);
}
